﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace QuTouTiaoAssist.Entity
{
    class QttIncomeInfo
    {
        /// <summary>
        /// 金币或零钱收入明细
        /// </summary>
        [JsonProperty("list")]
        public List<QttIncomeInfoItem> List = new List<QttIncomeInfoItem>();

        /// <summary>
        /// 总零钱收入
        /// </summary>
        [JsonProperty("total")]
        public string Total;

        /// <summary>
        /// 昨天金币或零钱收入
        /// </summary>
        [JsonProperty("yesterday")]
        public string Yesterday;

        /// <summary>
        /// 金币与零钱转换率
        /// </summary>
        [JsonProperty("convert")]
        public QttConvertInfo Convert;
    }

    /// <summary>
    /// 收入信息
    /// </summary>
    class QttIncomeInfoItem
    {
        /// <summary>
        /// 收入名称
        /// </summary>
        [JsonProperty("name")]
        public string Name;

        /// <summary>
        /// 收入描述
        /// </summary>
        [JsonProperty("desc")]
        public string Description;

        /// <summary>
        /// 收入类型
        /// </summary>
        [JsonProperty("item_type")]
        public string ItemType;

        /// <summary>
        /// 收入ID
        /// </summary>
        [JsonProperty("item_id")]
        public string ItemId;

        /// <summary>
        /// 收入创建时间
        /// </summary>
        [JsonProperty("create_time")]
        public string CreateTime;

        /// <summary>
        /// 收入金币数
        /// </summary>
        [JsonProperty("amount")]
        public string Amount;
    }
}
